package factory;

import dao.UserDao;
import dao.impl.UserDaoImpl;

/**
 * Spring工厂实例方法创建Bean对象
 * 工厂的非静态方法返回Bean实例
 */
public class DynamicFactory {
    public UserDao getUserDao(){
        return new UserDaoImpl();
    }
}
